package com.wobito.pojo.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 柜子表
 * </p>
 *
 * @author lambyang
 * @since 2024-08-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_cabinet")
@AllArgsConstructor
@NoArgsConstructor
public class Cabinet implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 序列编号
     */
    private String sequenceCode;

    /**
     * 柜子名称
     */
    private String name;

    /**
     * 区域id
     */
    private Long areaId;

    private String cameraId;

    private Integer isOnline;

    /**
     * 状态
     */
    private Integer isDeleted;

    private Date createTime;

    private Date updateTime;

    private Date deletedTime;

    public Cabinet(Long id, Integer isDeleted) {
        this.id = id;
        this.isDeleted = isDeleted;
    }

    public Cabinet(Long id, Integer isDeleted, Date deletedTime) {
        this.id = id;
        this.isDeleted = isDeleted;
        this.deletedTime = deletedTime;
    }

    public Cabinet(Long id, String sequenceCode, Integer isOnline, Date updateTime) {
        this.id = id;
        this.sequenceCode = sequenceCode;
        this.isOnline = isOnline;
        this.updateTime = updateTime;
    }
}
